﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace WebFirst.Entities
{
    /// <summary>
    /// 转诊记录表，用于记录患者的转诊信息
    ///</summary>
    [SugarTable("referral_records")]
    public class ReferralRecords
    {
        /// <summary>
        ///  
        ///</summary>
         [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public int Id { get; set; }
        /// <summary>
        /// 患者身份证号码 
        ///</summary>
         [SugarColumn(ColumnName="IdCard"    )]
         public string IdCard { get; set; }
        /// <summary>
        /// 患者姓名 
        ///</summary>
         [SugarColumn(ColumnName="Name"    )]
         public string Name { get; set; }
        /// <summary>
        /// 患者年龄 
        ///</summary>
         [SugarColumn(ColumnName="Age"    )]
         public int? Age { get; set; }
        /// <summary>
        /// 转诊时间 
        ///</summary>
         [SugarColumn(ColumnName="ReferralTime"    )]
         public DateTime ReferralTime { get; set; }
        /// <summary>
        /// 转诊科室 
        ///</summary>
         [SugarColumn(ColumnName="ReferredDept"    )]
         public string ReferredDept { get; set; }
        /// <summary>
        /// 转诊医生 
        ///</summary>
         [SugarColumn(ColumnName="ReferringDoctor"    )]
         public string ReferringDoctor { get; set; }
        /// <summary>
        /// 住院号 
        ///</summary>
         [SugarColumn(ColumnName="AdmissionNumber"    )]
         public string AdmissionNumber { get; set; }
        /// <summary>
        /// 门诊ID 
        ///</summary>
         [SugarColumn(ColumnName="OutpatientID"    )]
         public string OutpatientID { get; set; }
        /// <summary>
        /// 初步诊断 
        ///</summary>
         [SugarColumn(ColumnName="DiseaseDiagnosis"    )]
         public string DiseaseDiagnosis { get; set; }
        /// <summary>
        /// 联系方式 
        ///</summary>
         [SugarColumn(ColumnName="Telephone"    )]
         public string Telephone { get; set; }
        /// <summary>
        /// 机构名称 
        ///</summary>
         [SugarColumn(ColumnName="InstitutionName"    )]
         public string InstitutionName { get; set; }
        /// <summary>
        /// 转诊医生名称 
        ///</summary>
         [SugarColumn(ColumnName="DoctorName"    )]
         public string DoctorName { get; set; }
        /// <summary>
        /// 转诊电话 
        ///</summary>
         [SugarColumn(ColumnName="ReferrePhone"    )]
         public string ReferrePhone { get; set; }
        /// <summary>
        /// 上转途径 
        ///</summary>
         [SugarColumn(ColumnName="UpturnPath"    )]
         public string UpturnPath { get; set; } 
        /// <summary>
        /// 转出机构电话 
        ///</summary>
         [SugarColumn(ColumnName= "OutPhone")]
         public string OutPhone { get; set; }
        /// <summary>
        /// 转入科室
        ///</summary>
        [SugarColumn(ColumnName = "TransferDept")]
        public string TransferDept { get; set; }
        /// <summary>
        /// 转诊状态
        ///</summary>
         [SugarColumn(ColumnName= "ReferreState")]
         public int ReferreState { get; set; }
    }
}
